package com.joysuch.wwyt.workflow.bean;

import com.joysuch.wwyt.workflow.entity.dto.WorkFlowReportConfigDto;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import java.io.Serializable;
import java.util.List;

/**
 * @Author ZhaoQiuWei
 * @Date 2021/4/16 14:32
 */
@Data
@ApiModel(value = "WorkFlowInquiryConfig对象")

public class WorkFlowInquiryConfigBean implements Serializable {
    @ApiModelProperty("主键ID")
    private Long id;

    @ApiModelProperty("报表名称")
    private String reportName;

    @ApiModelProperty("数据来源")
    private String dataSource;

    @ApiModelProperty("数据来源名称")
    private String dataSourceName;

    @ApiModelProperty("报表形式")
    private String inquiryType;

    @ApiModelProperty("报表形式名称")
    private String inquiryTypeName;

    @ApiModelProperty("展示格式")
    private String displayForm;

    @ApiModelProperty("关联菜单id")
    private Long menuId;

    @ApiModelProperty("关联菜单id")
    private Long parentMenuId;
    private String parentMenuName;

    @ApiModelProperty("独立菜单 T有 F无")
    private String menuType;

    @ApiModelProperty("异常状态 T显示 F隐藏")
    private String exceptionStatus;

    @ApiModelProperty("流程状态 T显示 F隐藏")
    private String processStatus;

    @ApiModelProperty("选择的业务id集合")
    @NotEmpty(message = "关联业务不能为空")
    private List<Long> processIds;
    private List<String> processNames;

    @ApiModelProperty("是否展示编号，1：展示，0：不展示")
    private String showCode;

    @ApiModelProperty("报表配置Json")
    @NotEmpty(message = "报表不能为空")
    private List<WorkFlowReportConfigDto> reportConfigs;
}
